//
//  ConvertKeyModel.m
//  ExcelToPlist
//
//  Created by 赵梁 on 2017/3/29.
//  Copyright © 2017年 赵梁. All rights reserved.
//

#import "ConvertKeyModel.h"

@implementation ConvertKeyModel

- (id)copyWithZone:(NSZone *)zone
{
    ConvertKeyModel *copy = [[[self class] allocWithZone:zone] init];
    copy.keyNew = [_keyNew copy];
    copy.keyOld = [_keyOld copy];
    return copy;
}

#pragma mark - 将对象转化为NSData的方法
- (void)encodeWithCoder:(NSCoder *)aCoder
{
    [aCoder encodeObject:_keyNew forKey:@"_keyNew"];
    [aCoder encodeObject:_keyOld forKey:@"_keyOld"];
}

- (instancetype)initWithCoder:(NSCoder *)aDecoder
{
    if ([self init]) {
        _keyNew = [aDecoder decodeObjectForKey:@"_keyNew"];
        _keyOld = [aDecoder decodeObjectForKey:@"_keyOld"];
    }
    return self;
}

@end


